home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / gs25dos1.zip / NEWS < prev    next >
Text File  |  1992-08-18  |  83KB  |  2,238 lines

  1.    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.
  19.  
  20. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  21.  
  22. This file, NEWS, describes the changes in the various releases of
  23. Ghostscript.  (This file was formerly named history.doc.)
  24.  
  25. For an overview of Ghostscript and a list of the documentation files, see
  26. README.
  27.  
  28. Version 2.5 (8/18/92)
  29. ===========
  30.  
  31. This version adds Type 1 hinting, CCITTFax encoding and decoding, and
  32. Microsoft Windows support, as well as the usual minor improvements
  33. and bug fixes.
  34.  
  35. Procedures
  36. ----------
  37.  
  38. Fixes bugs:
  39.     - GSIMPATH, SLZWD, and SLZWE were omitted from the VMS
  40. makefiles, and GSIM2OUT was not removed.
  41.     - landscap.ps messed up the current path.
  42.  
  43. Adds new switches:
  44.     -dSAFER disables file writing and directory modification.
  45.     -dESTACKPRINT causes errors to print the execution stack with
  46. == instead of =.
  47.     -sOutputFile=<string> replaces -sOUTPUTFILE (which is still
  48. recognized) for setting the output file or pipe for the default
  49. (printer) device.
  50.     -sPAPERSIZE=<sizename> initializes the paper size.
  51.     -dBufferSpace=<number> sets the buffer size for the default
  52. (printer) device.
  53.  
  54. For Unix systems, changes the directories in GS_LIB_DEFAULT from
  55. `pwd` to $(gsdatadir), i.e., normally $(datadir)/ghostscript, where
  56. datadir is normally /usr/local/lib.
  57.  
  58. Adds a note in the header file to the effect that the X Windows
  59. driver expects to find header files in $(XINCLUDE)/X11, not in
  60. $(XINCLUDE).
  61.  
  62. Changes -q so it defines QUIET as true instead of null (so it can be
  63. used in the middle of the command line as well as at the beginning).
  64.  
  65. Renames the history.doc file as NEWS.
  66.  
  67. Utilities
  68. ---------
  69.  
  70. Platforms
  71. ---------
  72.  
  73. Fixes bugs:
  74.     - The stack size was not getting increased on the Watcom
  75. platform.
  76.  
  77. Removes "b" from the scratch file opening modes in gp_unix.c and
  78. (conditionally) in gdevprn.c, to pacify the DECstation Ultrix system.
  79.  
  80. Adds a makefile (bcwin.mak) and a platform file (gp_mswin.c) for
  81. Microsoft Windows.
  82.  
  83. On MS-DOS platforms (including Windows), uses the TEMP environment
  84. variable to designate the directory for scratch files.
  85.  
  86. Changes std.h so that the VMS C compiler uses function prototypes and
  87. 'const'.
  88.  
  89. Changes the VMS cc makefile so it doesn't use ansi2knr.
  90.  
  91. Fonts
  92. -----
  93.  
  94. Fixes bugs:
  95.     - findfont left an extra entry on the stack if it couldn't
  96. find the default font.
  97.  
  98. Renames bchi, ncri, and puti as bchri, ncrri, and putri, to conform
  99. with the naming scheme for other fonts.
  100.  
  101. Adds $(CCFLAGS) to the command line used for compiling fonts.
  102.  
  103. Converts the .pfa fonts (CharterBT, IBM Courier, and Utopia) to .gsf,
  104. by removing eexec encryption and also removing some mysterious
  105. unmapped characters from Courier.  This makes these fonts work with
  106. DISKFONTS.
  107.  
  108. Changes the implementation of compiled fonts so they are read-only
  109. and sharable (no external references).  (They are, however, not
  110. position-independent.)
  111.  
  112. Provides a way to use compiled fonts on platforms that limit the
  113. number of characters in an identifier.
  114.  
  115. Adds public-domain Cyrillic and Cyrillic-Italic fonts.
  116.  
  117. Adds a 'userdict begin' to .loadfont, because Type 3 fonts produced
  118. by Fontographer expect a writable dictionary on the top of the stack.
  119.  
  120. Changes definefont for Type 1 fonts to insert UnderlinePosition and
  121. UnderlineThickness entries in FontInfo if they are absent, because
  122. many word processors incorrectly assume these entries are present.
  123.  
  124. Drivers
  125. -------
  126.  
  127. Fixes bugs:
  128.     - The documentation in use.doc said that the densities for
  129. 9-pin Epson printers were 60x60 to 240x60, rather than 60x72 to
  130. 240x72.
  131.     - gdevprn.c smashed one byte beyond the end of the string
  132. given as the OutputFile device property.
  133.     - The X11 driver used XVisualIDFromVisual, which is not
  134. defined in X11R3.
  135.     - The SunView driver modified the input data, which was
  136. declared as const.
  137.     - The LaserJet IIP and III drivers shifted the page 185
  138. pixels to the left and 0.25" down, because the initialization string
  139. was incorrect.
  140.     - The PCX driver wrote 16-bit values using the byte ordering
  141. of the platform, rather than always LSB first.
  142.     - For vertical spacing, the LaserJet and DeskJet drivers used
  143. a command that spaces N/300", rather than N scan lines, but gave it a
  144. parameter in scan lines.
  145.     - The VESA driver didn't allocate a full 256-byte buffer for
  146. reading the mode information from the BIOS, causing the stack to get
  147. smashed by newer VESA implementations.
  148.     - The VESA driver didn't use the scan line length returned by
  149. the BIOS, causing garbage output for some cards and some resolutions.
  150.     - The generic printer driver didn't free the bitmap when
  151. closing the device, if it fit entirely in memory.
  152.     - The PaintJet driver allocated its data areas on the stack
  153. instead of with gs_malloc.
  154.     - The generic printer driver didn't attempt to increase the
  155. buffer size if it was too small.
  156.     - The band list driver didn't split large bitmaps properly,
  157. leading to garbled characters at high resolutions.
  158.     - The GIF and PCX drivers used a color map that often turned
  159. gray colors into non-grays.
  160.  
  161. Changes the default put_props procedure so that if the device is
  162. open, setting HWSize and/or HWResolution closes the device and
  163. reopens it.
  164.  
  165. Adds a driver for Microsoft Windows 3.n.
  166.  
  167. Updates the 'cdj' and 'dj500c' DeskJet 500C drivers with new versions.
  168. (This are user-contributed drivers.)
  169.  
  170. Changes gdev_prn_put_props so OutputFile can be changed dynamically.
  171.  
  172. Updates the DEC LN03 driver to also handle the LA50 and LA75.  (This
  173. is a user-contributed driver with a FSF copyright.)
  174.  
  175. Changes the LaserJet/DeskJet driver so that -DA4 in the makefile
  176. makes A4 paper the default.  The driver now also sends an appropriate
  177. page size selection command to the printer if the printer supports it.
  178.  
  179. Changes all the Aladdin-supported drivers to return appropriate error
  180. codes rather than -1.
  181.  
  182. Adds a driver for the S3 86C911, a PC graphics accelerator used in
  183. the popular Diamond Stealth board.  This is the first driver that
  184. uploads character bitmaps to a device; others will probably follow.
  185.  
  186. Adds user-supplied code to the Epson driver so it will do triple
  187. passes on 9-pin printers for higher resolution.
  188.  
  189. Adds user-supplied code for the PaintJet XL to the PaintJet driver.
  190.  
  191. Interpreter
  192. -----------
  193.  
  194. Fixes bugs:
  195.     - zdps1.c didn't include alloc.h.
  196.     - On 32-bit systems, if maxlength of a dictionary was less
  197. than the actual allocated space, length could become larger than
  198. maxlength.
  199.     - flushfile didn't actually flush data when reading.
  200.     - The ASCII85Decode filter signalled EOF prematurely.
  201.     - The scanner interpreted .3D.glorp as the number 0.3, rather
  202. than as a name.
  203.     - Closing a file freed the stream structure, creating
  204. dangling references if there were other file objects pointing to the
  205. same stream.
  206.     - eexec called handleerror if an error occurred, instead of
  207. letting the error propagate to an enclosing stopped.
  208.     - gs.h made perror illegal, instead of defining it in terms
  209. of strerror.
  210.     - One-character names weren't being allocated at
  211. initialization, so they could be left dangling after a restore.
  212.     - Internal gsaves (i.e., the ones in show and setcachedevice)
  213. didn't also save istate, so setfont inside a BuildChar procedure
  214. might cause the font outside to get changed.
  215.     - The allocator incorrectly freed objects in the current
  216. chunk that were older than the current save.
  217.     - mark was just an object, rather than an operator, so 'bind'
  218. didn't bind it.  (This is theoretically a problem for null, true, and
  219. false also, but even more unlikely to be a problem in practice.)
  220.     - packed_get didn't cast packed integers to int, so negative
  221. integer elements of packed arrays came out wrong.
  222.     - quit just did a gs_exit, instead of returning to the driver
  223. in an orderly way.
  224.     - Because check_type_access checked for errors in the wrong
  225. order, sometimes type errors were reported as access errors.
  226.     - eq didn't check for stack underflow.
  227.     - Some of the stream_procs structures weren't properly
  228. declared const, leading to link errors on VMS.
  229.  
  230. Implements currentcolor, currentcolorspace, setcolor, and
  231. setcolorspace (for DeviceGray, DeviceRGB, and DeviceCMYK only).
  232.  
  233. Implements the dictionary form of image and imagemask.  All the pairs
  234. in the Decode array must be the same; Interpolate is ignored.  The
  235. only supported color spaces are DeviceGray, DeviceRGB, and
  236. DeviceCMYK.
  237.  
  238. Implements files as allowable sources for the image operators.
  239.  
  240. Removes the index field from the name structure, moving it to the
  241. 'size' field of name refs.
  242.  
  243. Changes the unread/sungetc operation to require that the character be
  244. the same as the last one read from the file.
  245.  
  246. Adds fflush calls to some debugging printout routines, because Unix
  247. sometimes buffers terminal output.
  248.  
  249. Implements the CCITTFaxEncode and CCITTFaxDecode filters.  Implements
  250. the general case of the SubFileDecode filter.
  251.  
  252. Changes definefont to treat a UniqueID of 0 as equivalent to no
  253. UniqueID, because Fontographer output apparently often violates the
  254. specification in this way.
  255.  
  256. Changes the default printer screen from 32.5 to 46 cells/inch.  (The
  257. old value was appropriate for a hand-rotated cell with two spots in
  258. it.)
  259.  
  260. Changes the utility routines to allow an integral real wherever an
  261. integer parameter is expected in a dictionary, because Fontographer
  262. produces fonts that violate the Adobe specification in this way.
  263.  
  264. Adds a `dosio' feature that provides direct access to memory and to
  265. I/O ports under MS-DOS.  (This feature is not included in the
  266. standard executables, of course.)
  267.  
  268. Changes the default character cache limit to a 1/4" x 1/4" character
  269. at the default resolution, rather than basing it on the preallocated
  270. cache size.
  271.  
  272. Removes support for t_color objects, which haven't actually been used
  273. for several releases.
  274.  
  275. Implements setcmykcolor and currentcmykcolor as operators, so they
  276. will interact properly with setcolorspace and currentcolorspace.
  277.  
  278. Changes the name of the file.h header file to files.h, to work around
  279. a bug in the VMS header library.
  280.  
  281. Adds command line switches @file (to treat file as more command line,
  282. to get around the DOS 128-character command line limit) and -ffile
  283. (so one can specify file names that begin with - or @).
  284.  
  285. Changes the PFBDecode filter so it takes an additional boolean that
  286. says whether or not to convert binary packets to hex.  (Conversion to
  287. hex and back to binary accounted for a substantial amount of the time
  288. required to load .PFB fonts.)
  289.  
  290. Splits off `copydevice' as a separate operator again.
  291.  
  292. Library
  293. -------
  294.  
  295. Fixes bugs:
  296.     - In the VMS environment, string_.h used its own prototypes
  297. for the str... and mem... functions instead of <string.h>
  298.     - gx_alloc_char_bits declared cdsize as long, but didn't
  299. shorten it when passing it to shorten_cached_char.
  300.     - Stroking didn't suppress fattening of the lines.
  301.     - kshow didn't update the cached CTM information in the show
  302. enumerator when returning from the callout, so further characters
  303. could get drawn in the wrong place.
  304.     - When a memory device returned its initial matrix, it
  305. smashed the padding fields, which contained the interpreter's type
  306. information.
  307.     - setcachedevice didn't set the initial matrix in the cache
  308. memory device.
  309.     - image_set_rgb (in the image operators) didn't do a
  310. gx_color_from_rgb, so in principle one could sometimes get incorrect
  311. colors in an image.
  312.     - The decision about whether or not to cache a character
  313. bitmap incorrectly compared the character size against cmax rather
  314. than cdata_size.
  315.     - show didn't reset the in_cachedevice flag in the graphics
  316. state, so characters rendered by a recursive show were never cached.
  317.     - clip and eoclip didn't release the intermediate flattened
  318. clip path, causing memory to be lost.
  319.     - The tile_diff routine didn't handle the case of two
  320. identical tiles properly; this produced garbage in the band list
  321. file.
  322.     - stringwidth didn't round the character origin to an
  323. integral pixel; this interacted badly with hinting, causing
  324. improperly hinted characters to wind up in the cache.
  325.     - Bitmaps (including characters) were displaced, as well as
  326. being clipped, if they intersected the top of a clipping region.
  327.     - In gxclist and gdevmem1, the raster computation (although
  328. not the result) could overflow an int on 16-bit machines.
  329.  
  330. Implements decoding (sample mapping) for image and imagemask.
  331.  
  332. Implements hinting for Type 1 fonts, based on (but not copying) the
  333. algorithms from the X11R5 tape.
  334.  
  335. Changes curve rasterizing to use sampling, rather than recursive
  336. subdivision, for characters.  This produces noticeably better output.
  337. Speed penalty for non-cached characters is less than 10% at display
  338. resolutions, up to 50% for 300 dpi printers.
  339.  
  340. Implements gs_setcmykcolor and gs_currentcmykcolor.  These are
  341. semi-fake, since they simply convert the color to and from RGB, but
  342. the former does set the current color space properly.
  343.  
  344. Changes clipping regions so they use the any-part-of-pixel rule
  345. rather than the center-of-pixel rule.  This helps avoid dropouts when
  346. using very small regions.
  347.  
  348. Implements stroke adjustment.
  349.  
  350. Version 2.4.2 (5/8/92)
  351. =============
  352.  
  353. This is another quick release.  It finally fixes rotated halftone
  354. screens, and cleans up a few minor problems from 2.4.1.
  355.  
  356. This release is being distributed only to beta testers and commercial
  357. licensees, since I don't want to be distracted from working on 2.5.
  358.  
  359. Procedures
  360. ----------
  361.  
  362. Fixes bugs:
  363.     - UTRACE still appeared in the VMS makefiles.
  364.     - The support files (*.bat, *.doc, *.gsf, *.ps, Fontmap,
  365. COPYING, README) weren't included in the MS-DOS tar file.
  366.     - The Unix install script didn't install landscap.ps.
  367.  
  368. Replaces the type1imagepath operator with PostScript code (impath.ps,
  369. type1ops.ps) based on the new .imagepath operator.
  370.  
  371. Renames LICENSE as COPYING.
  372.  
  373. Utilities
  374. ---------
  375.  
  376. Fixes bugs:
  377.     - pcharstr.ps had an occurrence of Subrs rather than /Subrs,
  378. causing it to not print the Subrs, or to get an error if there were
  379. none.
  380.     - font2c.ps didn't get the const declarations for string
  381. dictionaries quite right.
  382.     - The missing newline at the end of gsbj.bat confused GNU
  383. diff.
  384.     - ansi2knr would go into an infinite loop if a statement
  385. exceeded its internal buffer size.
  386.     - Compiled fonts would get processed by ansi2knr, which
  387. messed them up.
  388.  
  389. Platforms
  390. ---------
  391.  
  392. Fixes bugs:
  393.     - Ghostscript didn't supply equivalents for rename and
  394. gettimeofday, which some System V platforms lack.
  395.     - The missing newline at the end of gp_dosfb.c confused GNU
  396. diff.
  397.  
  398. Changes the Borland makefiles so that stack checking is only enabled
  399. if DEBUG or TDEBUG is set.
  400.  
  401. Fonts
  402. -----
  403.  
  404. Changes the names of the Utopia fonts from utrg/utb/utbi/uti to
  405. putr/putb/putbi/puti, for consistency with the rest of the font names.
  406. Changes cour/courb/courbi/couri to ncrr/ncrb/ncrbi/ncri likewise.
  407.  
  408. Replaces the Charter fonts with the CharterBT fonts donated by
  409. Bitstream to the X11R5 distribution.
  410.  
  411. Adds font aliasing capability to Fontmap.  Replaces
  412. Courier-[Bold]Oblique and ZapfChancery-MediumItalic by aliases.
  413.  
  414. Changes the FontBBox of the Hershey fonts to be an executable, rather
  415. than a literal, array.
  416.  
  417. Drivers
  418. -------
  419.  
  420. Fixes bugs:
  421.     - The GIF driver omitted a `private' on the definition of
  422. gif_print_page.
  423.     - The GIF driver wrote 16-bit values using the byte ordering
  424. of the platform, rather than always LSB first.
  425.     - George Cameron's DeskJet 500C driver had an incorrect
  426. control sequence for skipping blank lines.
  427.  
  428. Adds 'const' in many places, including the tile and bitmap arguments
  429. of the tile_rectangle, copy_mono, and copy_color driver routines.
  430. THIS IS A DRIVER INTERFACE CHANGE.  (Printer drivers are not
  431. affected, since they don't implement these routines.)
  432.  
  433. Adds a driver for the Trident TVGA.
  434.  
  435. Interpreter
  436. -----------
  437.  
  438. Fixes bugs:
  439.     - alloc_free sometimes incorrectly chose to put an unaligned
  440. block in an old segment on a freelist.
  441.     - The default undercolor removal function returned its
  442. argument rather than returning 0.
  443.  
  444. Adds NullEncode and SubFileDecode to the standard filters, since
  445. bdftops uses the latter.
  446.  
  447. Adds RunLengthEncode and RunLengthDecode to the optional filters.
  448.  
  449. Removes the type1imagepath operator.  (It is still available as
  450. PostScript code, impath.ps.)  Replaces it with a simpler outline
  451. tracing operator .imagepath.
  452.  
  453. Adds 'const' in many places.
  454.  
  455. Makes fileposition (but not setfileposition) legal for NullEncode
  456. filters.
  457.  
  458. Changes the default transfer function for high-resolution devices
  459. from the identity function to the square root function.
  460.  
  461. Moves array_get from zgeneric.c to iutil.c.
  462.  
  463. Changes uses of fopen to add a "b" to the access mode, rather than
  464. relying on the _fmode global variable on MS-DOS platforms.
  465.  
  466. Allows use of the -Z switch even when gsmain.c wasn't compiled with
  467. -DDEBUG, since other modules might have been.
  468.  
  469. Reorganizes gs.c and gsmain.c so that the latter can be used in
  470. server environments.
  471.  
  472. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  473.  
  474. Makes the number of permanent entries on the dictionary stack a
  475. parameter, to allow inserting globaldict in the future.
  476.  
  477. Changes BlueShift in the Type 1 font Private dictionary to allow real
  478. numbers.  (This differs from the Adobe specification, but at least
  479. one commercial font has a real number for BlueShift.)
  480.  
  481. Library
  482. -------
  483.  
  484. Fixes bugs:
  485.     - The doubling check in init_ht (gxht.c) still sometimes
  486. thought there was enough room to double the tile when there actually
  487. wasn't.
  488.     - Rotated halftone screens didn't work.
  489.     - gxarith.h used #ifdef vax, rather than #if
  490. !arch_floats_are_IEEE, to test whether IEEE floats were being used.
  491.     - pathforall didn't report a trailing moveto.
  492.  
  493. Replaces gs_type1imagepath with gs_imagepath.
  494.  
  495. Allows sOUTPUTFILE=-, meaning output to stdout.
  496.  
  497. Adds 'const' in many places.
  498.  
  499. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  500.  
  501. Version 2.4.1 (4/21/92)
  502. =============
  503.  
  504. This is a quick release to fix minor problems discovered in 2.4, and
  505. to add a few improvements that didn't quite make it into 2.4.  It
  506. also adds GIF and PCX file support.
  507.  
  508. Procedures
  509. ----------
  510.  
  511. Fixes bugs:
  512.     - Some makefile dependencies, and the ccgs script, caused trouble
  513. for parallel versions of `make'.
  514.     - Compiling genarch with -O with gcc on the RS/6000 produced a
  515. buggy executable.
  516.  
  517. Fixes some minor problems in make.doc.
  518.  
  519. Adds DEVICE_DEVS2..5 to handle long device lists.
  520.  
  521. Removes the need to set GS_RUN_EXE when using the Watcom compiler on
  522. MS-DOS systems.
  523.  
  524. Gets rid of gs_ccfnt.ps, merging its function into gs_fonts.ps.
  525.  
  526. Gets rid of gconfig.ps; this information is now compiled in gconfig.c.
  527.  
  528. Utilities
  529. ---------
  530.  
  531. Fixes bugs:
  532.     - The palette for pstoppm in 8-bit mode didn't contain all 8
  533. primary colors.
  534.     - font2c used just values_ to mean &values_[0]; some compilers
  535. couldn't handle this.
  536.  
  537. Makes font2c insert `const' in many appropriate places.
  538.  
  539. Drivers
  540. -------
  541.  
  542. Fixes bugs:
  543.     - The SunView driver had not been updated properly for 2.4 and was
  544. pretty thoroughly broken.
  545.     - None of the printer drivers worked properly with the Watcom
  546. compiler, because stdprn was doing \n -> \r\n substitution.
  547.     - If the generic printer driver couldn't allocate the requested
  548. size command list buffer, it gave up rather than trying to allocate a
  549. smaller buffer.
  550.     - The SuperVGA drivers (except for the VESA driver) didn't
  551. work with the Watcom compiler, because a couple of places in the
  552. drivers weren't truncating the offset of "segmented" pointers
  553. properly.
  554.     - Some of the H-P used <esc>*b#Y rather than <esc>*p+#Y for
  555. vertical positioning; this apparently is wrong, at least for the
  556. LJIIp.
  557.  
  558. Removes the dependence of the X Windows driver on Xt, Xext, and Xmu.  As a
  559. result, Ghostscript will not install a standard colormap itself, but it
  560. will use one if one is already installed.
  561.  
  562. Adds a set of drivers for Portable Bitmap, Graymap, and Pixmap file
  563. formats.
  564.  
  565. Adds drivers for monochrome, EGA/VGA-style, and SuperVGA-style PCX
  566. file formats.
  567.  
  568. Adds drivers for monochrome and 256-color GIF file formats.
  569.  
  570. Fonts
  571. -----
  572.  
  573. Adds ZapfChancery-MediumItalic as a copy of ZapfChancery-Oblique.
  574.  
  575. Interpreter
  576. -----------
  577.  
  578. Fixes bugs:
  579.     - A value with l_new set could 'escape' to save level 0 on a
  580. stack; if stored, it prevented the slot from being saved and restored
  581. properly.
  582.     - 16#7fffffff + 1 gave the floating point equivalent of -2^31, not
  583. 2^31.
  584.     - The PFBDecode filter computed the packet length incorrectly if
  585. the 0x8000-bit of the length was set.
  586.     - 5-byte numbers in Type 1 CharStrings complained of a rangecheck
  587. if they exceeded 16 bits, rather than if they exceeded the integer part of
  588. a fixed.
  589.     - (, ), and \ appearing in file name arguments in the command
  590. line did not work properly.
  591.  
  592. Adds 'const' in many places.
  593.  
  594. Changes the random number generator to be the same as the one used in
  595. Level 2 PostScript (as reported by Ed Taft on comp.lang.postscript).
  596.  
  597. Exits with code 1 rather than code 0 on an unrecoverable error detected at
  598. the PostScript level.
  599.  
  600. Makes dictionaries expand automatically when they fill up.
  601.  
  602. Adds gp_exit to complement gp_init.
  603.  
  604. Changes dictionaries to always allocate a power of 2 entries on
  605. 32-bit machines.  Changes the name table to allocate indices
  606. scattered, so dictionary lookup doesn't have to do a multiply to
  607. scramble the index.
  608.  
  609. Changes the handling of currentfile to do "shallow binding" so stack
  610. searching is almost never required.
  611.  
  612. Library
  613. -------
  614.  
  615. Fixes bugs:
  616.     - arc and arcn got a numeric exception if the radius was zero.
  617.     - The undocumented 15 opcode in Type 1 fonts wasn't ignored.
  618.     - PaintType 3 wasn't allowed.  (It isn't clear what it should
  619. mean; we treat it as equivalent to 0.)
  620.     - The VAX/VMS C compiler was generating incorrect code for the
  621. chi_bits and cmask macros in gdevmem, producing incorrect output.
  622.     - If the result of the slow algorithm for intersecting clipping
  623. paths was a rectangle, the wrong thing happened (cbox didn't get set).
  624.     - gx_path_is_rectangle didn't recognize open rectangles.
  625.     - clist_change_tile didn't check properly whether the tile
  626. size had changed, so changing the screen could produce invalid band
  627. files.
  628.     - The image operators did the wrong thing in the 1-for-1
  629. case, interleaving N bytes of data with 7*N bytes of garbage.
  630.     - stroke sometimes handled bevel and miter joins wrong in
  631. reflected coordinate systems.
  632.     - init_ht checked incorrectly whether there was enough room
  633. to Y-replicate tiles, so sometimes it did it when it shouldn't have.
  634.     - stroke sometimes thought lines were thin when they weren't.
  635.  
  636. Adds 'const' in many places.
  637.  
  638. Adds support for 2- and 4-bit-per-pixel memory devices.
  639.  
  640. Version 2.4 (3/25/92)
  641. ===========
  642.  
  643. This is a major release that adds SuperVGA support, support for Metrics,
  644. settable device properties, and incremental font loading.  It also
  645. includes important performance improvements, based on rewrites of some key
  646. algorithms, and quite a few new Level 2 / Display PostScript facilities.
  647.  
  648. Procedures
  649. ----------
  650.  
  651. Fixes bugs:
  652.     - The rule for compiling gconfig.c didn't include the -I switches.
  653.     - .bat files were being distributed with a \n line terminator
  654. rather than \r\n.
  655.     - A CLOSE MODULE_LIST was needed after END_COMPILE: in the VMS
  656. command files.
  657.     - Unix systems couldn't handle multiple drivers with overlapping
  658. sets of files.
  659.     - -s<name> defined <name> as a null, rather than as an empty string.
  660.  
  661. Adds gconfig.ps to the list of needed configuration files.
  662.  
  663. Changes the way that the makefile handles nested .h files, so that it
  664. doesn't have to `touch' them.
  665.  
  666. Adds the loadallfonts procedure to gs_fonts.ps.
  667.  
  668. Changes the standard DOS configuration to include VGA, EGA, VESA, Epson,
  669. BubbleJet, and H-P printer drivers.
  670.  
  671. Renames ghost.mak as gs.mak, and gdevs.mak as devs.mak.
  672.  
  673. Adds a USE_ASM flag so that one can build a DOS version of Ghostscript
  674. without having an assembler.
  675.  
  676. Splits off common code from the two MS-DOS makefiles into tccommon.mak.
  677.  
  678. Replaces the COPYING and LICENSE files with a new LICENSE file containing
  679. version 2 of the GNU General Public License.
  680.  
  681. Removes DEVICES and DEVICE_OBJS from the makefiles, since they are no
  682. longer needed.
  683.  
  684. Adds a GS_DEVICE environment variable to supply a default device name if
  685. desired.
  686.  
  687. Adds ansihead.mak and unix-ansi.mak, to parallel [g]cc-head.mak and
  688. unix-[g]cc.mak, for other ANSI C compilers.
  689.  
  690. Changes the way that optional features are defined in the makefiles, so
  691. that they actually work.
  692.  
  693. Adds support for the Watcom C/386 compiler.
  694.  
  695. Allows # in the command line as equivalent to =, to compensate for
  696. brain-damaged MS-DOS shell.
  697.  
  698. Adds -sOUTPUTFILE= to set the output file or pipe.
  699.  
  700. Adds -dWRITESYSTEMDICT to leave systemdict writable.
  701.  
  702. Utilities
  703. ---------
  704.  
  705. Fixes bugs:
  706.     - pcharstr.ps insisted on having Subrs be present in the font.
  707.     - pcharstr.ps decoded negative numbers between -108 and -1131
  708. incorrectly.
  709.     - pfbtogs.ps didn't handle packets longer than 64K correctly.
  710.  
  711. Changes the bdftops utility so that it makes entries for UnderlinePosition
  712. and UnderlineThickness in FontInfo, and so that it always records a
  713. FullName (the FontName if no other is provided).
  714.  
  715. Changes the name of the pfbtops utility to pfbtogs, because groff already
  716. includes a program called pfbtops.
  717.  
  718. Adds the gslp utility for doing "line printing" of text files, similar to
  719. enscript + lpr.
  720.  
  721. Adds a new variable DITHERPPI that enables a different dither pattern,
  722. claimed to be better for printers.
  723.  
  724. Adds the font2c utility for compiling Type 1 fonts into C, so they can be
  725. linked into an executable rather than loaded dynamically.
  726.  
  727. Drivers
  728. -------
  729.  
  730. Fixes bugs:
  731.     - gdev_prn_copy_scan_lines was erroneously masking the last byte
  732. of data even on color printers, as was paintjet_print_page.
  733.     - The TruFax driver had a couple of compilation errors, since it
  734. hadn't been compiled in a while.
  735.     - The BGI driver sometimes didn't consult BGIPATH when looking for
  736. .BGI files.
  737.     - initclip did the wrong thing with memory devices.
  738.     - The BGI driver didn't look in BGIDIR for .BGI files.
  739.     - The Epson driver didn't set the right margin properly with
  740. ESC+Q.
  741.     - The BJ-10e driver was badly broken.
  742.     - gdev_prn_open/close_printer didn't reset the command list file,
  743. so it was taking quadratic time to print multi-page documents.
  744.  
  745. Adds color to the SunView driver.
  746.  
  747. Adds selectable resolution (75, 100, 150, or 300 DPI) to the
  748. DeskJet/LaserJet driver.
  749.  
  750. Changes gssetdev so that drivers can specify special libraries to be
  751. loaded, as well as object files.
  752.  
  753. Adds a driver for VESA-compliant SuperVGA displays.  This driver handles
  754. all resolutions from 640 x 400 up to 1280 x 1024, in 256-color mode.  The
  755. default is VGA resolution (640 x 480).
  756.  
  757. Adds a driver for the ATI Wonder SuperVGA card, and for SuperVGA cards
  758. using the Tseng Labs ET3000 or ET4000 chip such as the STB VGA EM-16 and
  759. the Orchid ProDesigner II (256-color modes only).
  760.  
  761. Adds a driver for Trident and Tseng Labs SuperVGA cards in 800 x 600,
  762. 16-color modes (for cards with only 256K of memory).
  763.  
  764. Adds user-contributed drivers for the Ricoh 4081, DEC LN03, Canon LBP-8II,
  765. and H-P DeskJet 500C printers.
  766.  
  767. Adds Tim Theisen's Ghostview changes to the X11 driver.
  768.  
  769. MAKES NON-BACKWARD-COMPATIBLE CHANGES TO THE DRIVER PROCEDURE INTERFACE as
  770. follows:
  771.  
  772.     - Changes map_rgb_color and map_color_rgb to always work in a
  773.         16-bit color value space, rather than a space defined by the
  774.         maximum number of distinct colors provided by the device.
  775.  
  776.     - Adds an argument to the output_page procedure to indicate
  777.         whether the procedure is being called for copypage or
  778.         showpage, and a num_copies argument.
  779.  
  780.     - Adds a gx_bitmap_id to the copy_ and tile_ procedures, so that
  781.         drivers can cache bitmaps in the server or device if they want
  782.         to.
  783.  
  784.     - Removes fill_trapezoid and tile_trapezoid.
  785.  
  786.     - Adds a new get_bits procedure for reading the bits back from the
  787.         driver buffer (when possible), replacing copy_scan_lines.
  788.         This procedure takes a new argument describing padding and
  789.         byte swapping, and returns a different value from
  790.         copy_scan_lines.
  791.  
  792.     - Adds get_props and put_props procedures for accessing arbitrary
  793.         additional properties of devices.  The interface is quite
  794.         complex, but provides a great deal of flexibility.
  795.  
  796. See drivers.doc for details.
  797.  
  798. Changes gdev_mem_bytes_per_scan_line to gdev_prn_bytes_per_scan_line.
  799.  
  800. Adds a user-contributed driver for DigiBoard, Inc.'s fax software.
  801.  
  802. Fonts
  803. -----
  804.  
  805. Changes Type1BuildChar so it uses the information from the Metrics
  806. dictionary in the font, if Metrics is present.
  807.  
  808. Changes findfont (.loadfont) so it recognizes .PFB fonts and can load them
  809. directly.  Also changes .loadfont to disable packing temporarily, because
  810. some fonts rely on procedures being writable (!).
  811.  
  812. Interpreter
  813. -----------
  814.  
  815. Fixes bugs:
  816.     - The hypot function is not available on some Unix systems.
  817.     - Ghostscript didn't flush and close files when exiting.
  818.     - In statusdict, the /margins procedure used .leftmargin, but
  819. /setmargins used .lmargin.
  820.     - An out-of-range putinterval would simply do nothing, rather than
  821. reporting an error.
  822.     - If an attempt to allocate a block larger than the allocator's
  823. chunk size (20K) failed, the allocator would erroneously think it had
  824. succeeded.
  825.     - The bind operator made the top-level procedure read-only, as
  826. well as interior procedures.
  827.     - gs.c copied 1 extra character for the value of strings defined
  828. on the command line with -s...=, which could smash the first byte of the
  829. next object in memory.
  830.     - copying a dictionary erroneously required the maxlength of the
  831. destination to be greater than or equal to the maxlength of the source,
  832. rather than the length of the source.
  833.     - undef didn't correctly decide when to mark a deleted entry as
  834. deleted vs. free; as a result, some keys couldn't be looked up properly
  835. after an undef.
  836.     - type1encrypt and type1decrypt didn't set the size of the result
  837. properly.
  838.     - cvi and cvr didn't allow leading or trailing whitespace in
  839. strings.
  840.     - cvs didn't cause an error if the destination string was too
  841. short.
  842.     - Many operators didn't check correctly for stack underflow (off
  843. by 1).
  844.     - `for' used reals, rather than integers, if the limit was a real,
  845. even if the initial value and increment were integers.
  846.     - `restore' didn't properly invalidate copies of the save object
  847. being restored from; `save dup restore restore' would crash.
  848.     - `restore' sometimes didn't undo stores into matrices that were
  849. stored into by operators.  (The identity matrix always had l_new set.)
  850.     - readline gave a rangecheck if the input line exactly filled the
  851. string.
  852.     - `--' as the last switch on the command line caused a crash
  853. rather than an error message.
  854.     - On MS-DOS systems, filenameforall didn't handle patterns with a
  855. drive or directory specifier properly.
  856.     - stroke sometimes called gz_draw_line_fixed even if the line went
  857. outside the clipping box by 1 pixel.
  858.  
  859. Changes the loop that binds procedure "operators" to entirely disable the
  860. handling of the typecheck error, rather than to use stopped.  This cuts
  861. initialization time significantly, and also eliminates about 35K of wasted
  862. space (for saving the stacks).
  863.  
  864. Changes the version "operator" so it returns 47.0.  Adds "revision" to
  865. define the Ghostscript version # x 100.
  866.  
  867. Adds gscurrentresolution and gssetresolution procedures for getting and
  868. setting the device resolution.
  869.  
  870. Adds -r<res> and -r<xres>x<yres> as command line options for setting
  871. device resolution.
  872.  
  873. Adds a facility for incrementally loading the individual CharStrings of a
  874. Ghostscript font from the disk.  This can save a lot of memory, at the
  875. expense of slower rendering.  (It is intended primarily for MS-DOS
  876. systems.)
  877.  
  878. Changes findlibfile to return the name of the file that was actually
  879. opened, as well as the file itself, when the operation succeeds.
  880.  
  881. Changes the name of the main entry to the interpreter from interpret to
  882. gs_interpret, because of a conflict with a Data General library procedure.
  883.  
  884. Adds the .setmetrics operator to set the metrics for the current
  885. character for Type 1 fonts.
  886.  
  887. Adds more LaserWriter-specific entries to statusdict.
  888.  
  889. Gives names to all the internal `operators', so they will print out
  890. reasonably when an error occurs.
  891.  
  892. Extends the status operator to accept a string and return file
  893. information, as defined for Level 2 PostScript.
  894.  
  895. Adds the filter operator and some specific filters: ASCII85Encode,
  896. ASCII85Decode, ASCIIHexEncode, ASCIIHexDecode, eexecDecode, NullEncode,
  897. PFBDecode, and the null case of SubFileDecode.
  898.  
  899. Extends the scanner to recognize the Level 2 << and >> tokens.
  900.  
  901. Adds a facility for extracting the text strings from a PostScript file and
  902. writing them out in a simple format (selected by -dASCIIOUT, implemented
  903. by gs_2asc.ps).
  904.  
  905. Implements all of the remaining Display PostScript facilities that are
  906. also in Level 2 (i.e., everything in section A.1.3 of the PostScript
  907. Language Reference Manual, Second Edition, that is not also in section
  908. A.1.2).  The virtual memory operations are all stubs; the new halftone
  909. options are not fully implemented.
  910.  
  911. Changes makeimagedevice to use a string of gray or RGB values, rather than
  912. an array of color objects, to specify the palette.  Removes
  913. currentgscolor and setgscolor from the interpreter, but leaves t_color
  914. objects in, since they may be useful later.
  915.  
  916. Adds getdeviceprops and putdeviceprops for manipulating device properties.
  917. Currently defined properties for all devices: InitialMatrix, HWResolution,
  918. HWSize, Name.  Currently defined properties for printers: BufferSpace,
  919. MaxBitmap, OutputFile.  OutputFile allows |command for piping on Unix
  920. systems.
  921.  
  922. Removes deviceparams and makedevice.  Adds devicedefaultmatrix.
  923.  
  924. Implements reversepath.
  925.  
  926. Makes copy work on devices.
  927.  
  928. MS-DOS specific
  929. - - - - - - - -
  930.  
  931. Fixes bugs:
  932.     - iutilasm.asm wouldn't assemble with newer versions of MASM if
  933. CPU_TYPE was set to 286 or above.
  934.     - CPU_TYPE=386 didn't properly substitute the faster
  935. multiply/divide routines under Turbo C++ or Borland C++, only under the
  936. original Turbo C.
  937.  
  938. Library
  939. -------
  940.  
  941. Fixes bugs:
  942.     - A curve whose first and last points were the same wouldn't get
  943. drawn at all.
  944.     - A bug in the Turbo C++ compiler generated bad code when shifting
  945. a long right by 1 bit.
  946.     - If stroking a dashed line ever encountered a segment that was
  947. completely blank, Ghostscript would indirect through a null pointer.
  948.     - arc and arcn gave an error if the radius was negative.
  949.     - stroke always used the general algorithm, even if the line was
  950. guaranteed to be thin.
  951.     - arc and arcn erroneously reduced the angles mod 360.
  952.     - Very large or negative 32-bit numbers in Type 1 fonts didn't
  953. work properly on MS-DOS systems (the ff0000 bits got set to zero). 
  954.     - Color printer devices rendering entirely in memory only
  955. allocated a monochrome-sized bitmap.
  956.     - clip and eoclip didn't intersect the paths properly in the
  957. general case.
  958.     - charpath erroneously rounded the current point to an integral
  959. value, causing characters to be spaced improperly.
  960.     - The definition of max_color_param got some compilers confused.
  961.     - charpath always used quadratic time and space, and dropped all
  962. but the last character when used with a Type 3 font.
  963.     - Stroking a path with a 180 degree angle would incorrectly miter
  964. instead of beveling.
  965.     - Type 1 fonts used the current flatness for curves, which could
  966. produce bad (and inconsistent) results.
  967.     - Stroking a degenerate line segment produced incorrect results.
  968.  
  969. Changes the character cache to use the UniqueID as the key, when
  970. available, instead of the font pointer.  This dramatically improves
  971. performance when fonts are getting removed and reloaded because of page
  972. isolation with save/restore.
  973.  
  974. Removes some unnecessary casts to (float) from gsmatrix.c and gscoord.c.
  975.  
  976. Changes the Type 1 interpreter so that it rounds line and curve endpoints
  977. to the center of the nearest half-pixel, and omits null line segments.
  978. This both speeds up rendering at small sizes and improves output quality.
  979.  
  980. Changes gs_deviceparams to return resolution as well as extent; changes
  981. gs_makedevice to accept resolution as well as extent.
  982.  
  983. Replaces the algorithm for approximating circular arcs with curves with a
  984. more accurate one.
  985.  
  986. Changes gs_point and gs_rect to use doubles rather than floats.
  987.  
  988. Adds gs_setmetrics, for overriding Type 1 font metrics for the current
  989. character.
  990.  
  991. Changes clipping to use lists of rectangles rather than path intersection.
  992.  This makes a big difference when clipping bitmaps (including characters).
  993.  
  994. Changes the character cache to discard entries incrementally, rather than
  995. clearing the entire cache when it fills up.
  996.  
  997. Changes the implementation of transfer functions to use a cached map,
  998. built when the transfer function is set.  This makes transfer functions
  999. work properly in all situations, including images.
  1000.  
  1001. Defines a .quit operator that takes an exit code, and redefines quit in
  1002. terms of it.
  1003.  
  1004. Adds support for 16-bit-per-pixel devices in gdevmem.
  1005.  
  1006. Adds gs_copydevice and gs_deviceinitialmatrix; removes gs_deviceparams and
  1007. gs_makedevice.
  1008.  
  1009. Changes setscreen to ensure that the cell is always at least 4x4 pixels in
  1010. size.
  1011.  
  1012. Version 2.3 (8/28/91)
  1013. ===========
  1014.  
  1015. This is a minor release to fix two bugs and add the PaintJet driver, which
  1016. didn't make it into 2.2.
  1017.  
  1018. Utilities
  1019. ---------
  1020.  
  1021. Changes the pstoppm utility so it counts pages correctly even in the
  1022. presence of arbitrary saves and restores.
  1023.  
  1024. Drivers
  1025. -------
  1026.  
  1027. Adds a new, "supported" PaintJet driver.
  1028.  
  1029. Changes the Epson driver to use ESC+D rather than ESC+\ for horizontal
  1030. positioning, since many printers don't support the latter.
  1031.  
  1032. Adds horizontal double-density (two-pass) printing to the Epson driver, so
  1033. it can do 240 x 60 and 360 x 180 densities.  (Vertical double density is
  1034. not supported yet.)
  1035.  
  1036. Version 2.2 (6/1/91)
  1037. ===========
  1038.  
  1039. The purpose of this release is to add save/restore, and a few
  1040. miscellaneous Level 2 P*stScr*pt features such as undef.  It also includes
  1041. major improvements in graphics quality and in handling of high-resolution
  1042. printers.
  1043.  
  1044. Procedures
  1045. ----------
  1046.  
  1047. Changes the version numbering to M.mpp rather than M.m.p, so that
  1048. `version' can be a real number for those programs that insist on it.
  1049.  
  1050. Renames ghost.ps as gs_init.ps, gfonts.ps as gs_fonts.ps, and statusd.ps
  1051. as gs_statd.ps.  The initialization files now all are named gs_*.ps.
  1052.  
  1053. Renames gdevs.{c,h,tl} as gconfig.{c,h,tl}.
  1054.  
  1055. Changes the relevant makefiles and command files so that a single build
  1056. can contain several drivers that share code, e.g., the Epson driver and
  1057. the DeskJet driver.
  1058.  
  1059. Changes gs_init.ps so it relies on an external gconfig.ps file rather than
  1060. making a specific test for the presence of Level 2 features.
  1061.  
  1062. Adds an entry for uglyr.gsf to the makefile.
  1063.  
  1064. Removes the distinction between CCA and CCNA, since most of the files now
  1065. contain constructs that require non-ANSI compilation on MS-DOS platforms.
  1066.  
  1067. Adds a `man' page for the ansi2knr utility.
  1068.  
  1069. Changes the documentation (use.doc) to show how to use -sDEVICE=<device>,
  1070. or the selectdevice procedure, to select devices by name.
  1071.  
  1072. Adds DEVICE_DEVS to the makefiles (analogous to DEVICES and DEVICE_OBJS).
  1073. This finally makes the make procedure fully automatic.
  1074.  
  1075. Adds the name of the initialization file (gs_init.ps) as a
  1076. platform-specific makefile parameter, GS_INIT.
  1077.  
  1078. Removes the test program gt.{c,tr} from the fileset, since it is not
  1079. useful to users.
  1080.  
  1081. Moves the Symbol encoding vector to a separate file (symbol_e.ps), from
  1082. which it is loaded when first used.
  1083.  
  1084. Changes the error handler so it can handle errors that occur while reading
  1085. the initialization files.
  1086.  
  1087. Extends ansi2knr so it can handle `void' and `...' in parameter lists.
  1088.  
  1089. Adds quit.ps to the set of installed files.
  1090.  
  1091. MS-DOS-specific changes
  1092. - - - - - - - - - - - -
  1093.  
  1094. Adds the VGA and BGI drivers to the standard MS-DOS configuration, and
  1095. makes VGA the default.
  1096.  
  1097. Adds a `+' and a newline at the end of gs.tr, to avoid problems with file
  1098. transfer programs or editors that add a newline at the end of files.
  1099.  
  1100. Changes the name of msdos.mak to turboc.mak, and creates a new tbcplus.mak
  1101. makefile for use with Turbo C++ and Borland C++.
  1102.  
  1103. Changes the extension of the loader response files from .tl to .tr.
  1104.  
  1105. Changes the default search path from c:/ghost and c:/ghost/fonts to c:/gs
  1106. and c:/gs/fonts.
  1107.  
  1108. Changes the directory separator from `|' back to ';', since it appears
  1109. that DOS can handle a ; in a command line if it is prefixed with \.
  1110.  
  1111. Unix-specific changes
  1112. - - - - - - - - - - -
  1113.  
  1114. Changes the uses of install in unixtail.mak so they only install a single
  1115. file at a time, which is all that the standard Unix install allows.
  1116.  
  1117. Removes the duplicate files (README/readme, LICENSE/license,
  1118. COPYING/copying, Fontmap/fontmap).
  1119.  
  1120. Changes the ld flags from LDPLAT to LDFLAGS.
  1121.  
  1122. Adds XCFLAGS and XLDFLAGS.  These are concatenated with CFLAGS and LDFLAGS
  1123. respectively.  The intention is that they be set from the `make' command
  1124. line if desired.
  1125.  
  1126. VMS-specific changes
  1127. - - - - - - - - - -
  1128.  
  1129. Repairs the omission of ZPACKED from the VMS build lists.
  1130.  
  1131. Drivers
  1132. -------
  1133.  
  1134. Fixes bugs:
  1135.     - The SunView driver produced semi-garbage on little-endian
  1136. platforms (Sun-386i) because it didn't swap the bit order.
  1137.     - The X driver would dump core if it couldn't open the display and
  1138. the DISPLAY environment variable wasn't set.
  1139.     - The X driver relied on white = 0, black = ones in a couple of
  1140. places;
  1141.     - The X driver would return an error, instead of clipping, if
  1142. asked to display outside the window.
  1143.     - The X driver would create inappropriately sized windows, because
  1144. it believed the server's report of the screen resolution.
  1145.  
  1146. Adds Fran Taylor's Private Eye driver to gdevs.mak and the fileset (not
  1147. supported by Aladdin Enterprises).
  1148.  
  1149. Adds Neil Ostroff's TruFax driver to gdevs.mak and the fileset (not
  1150. supported by Aladdin Enterprises).
  1151.  
  1152. Makes the scratch file template for the printer drivers a per-platform
  1153. quantity (gp_scratch_file_name_template).  Puts the default scratch files
  1154. for Unix in /usr/tmp rather than /tmp.
  1155.  
  1156. Changes the SunView driver to prevent the Ghostscript window from being
  1157. destroyed (which badly confuses the interpreter).
  1158.  
  1159. Extends the Epson driver to handle a variety of print densities in both X
  1160. and Y, to handle 24-pin as well as 8-pin graphics, and to allow optional
  1161. specification of default density in the makefile (gdevs.mak).
  1162.  
  1163. Refactors the printer drivers so that a single driver handles both DeskJet
  1164. and LaserJet.  Adds LaserJet drivers that use the new compression modes on
  1165. the LJ IId/IIp and LJ III.
  1166.  
  1167. Changes all the printer drivers to use band lists rather than bitmap
  1168. paging as the buffering method.  (The individual drivers need only a
  1169. one-line change to replace mem_copy_scan_lines with
  1170. gdev_prn_copy_scan_lines with a different argument.)
  1171.  
  1172. Adds the halftone phase as additional arguments to tile_rectangle and
  1173. tile_trapezoid.
  1174.  
  1175. Adds an entirely new and much simpler PaintJet driver, using the new band
  1176. list interface.
  1177.  
  1178. Adds margin information to the device structure.  This is currently only
  1179. relevant for printer devices.
  1180.  
  1181. Adds BGIPATH and BGIUSER environment variables, allowing additional
  1182. control of the BGI driver.
  1183.  
  1184. Changes the x/y_pixels_per_inch member of the device structure from int to
  1185. float.
  1186.  
  1187. Fonts
  1188. -----
  1189.  
  1190. Patches gs_fonts.ps so definefont will add an isFixedPitch entry to
  1191. FontInfo if there isn't one there.
  1192.  
  1193. Removes the old "type 7 path" encoding code from gs_fonts.ps.
  1194.  
  1195. Changes bdftops so it puts isFixedWidth and ItalicAngle entries in the
  1196. FontInfo dictionary of the fonts it creates, since some P*stScr*pt
  1197. programs rely on this.
  1198.  
  1199. Changes bdftops so it synthesizes as many missing characters as possible
  1200. out of the ones that are there (in particular: synthesizes accents out of
  1201. punctuation marks, and accented characters using seac.)  The results
  1202. aren't all that good, but they're a lot better than having characters
  1203. missing out of the font.
  1204.  
  1205. Utilities
  1206. ---------
  1207.  
  1208. Adds a pfbtops utility for converting .PFB fonts to standard Ghostscript
  1209. fonts.
  1210.  
  1211. Fixes bugs:
  1212.     - ps2image didn't reset things properly between pages for
  1213. multi-page documents.
  1214.  
  1215. Interpreter
  1216. -----------
  1217.  
  1218. Makes Ghostscript recognize `-' alone as meaning that it should read from
  1219. standard input as though it were a file.  This allows Ghostscript to
  1220. accept a pipe as input.
  1221.  
  1222. Fixes bugs:
  1223.     - seac in type1addpath used the current font's encoding, not
  1224. StandardEncoding.
  1225.     - type1decryptfile (eexec) didn't recognize binary (as opposed to
  1226. hex) representation.
  1227.     - Mentioning a name whose value was a no-access object caused an
  1228. invalidaccess error.
  1229.     - There was a bogus definition of `run' in zfile.c.
  1230.     - The interpreter didn't handle end-of-file on stdin properly.
  1231.     - Real numbers with an 'e' or 'E' but no decimal point were not
  1232. recognized.
  1233.     - On MS-DOS systems, inside strings, \ followed by a newline was
  1234. not discarded properly.
  1235.     - On MS-DOS systems, the long unsigned divide routine sometimes
  1236. gave incorrect answers.  Among other things, this caused alternate-radix
  1237. numbers sometimes to crash the interpreter.
  1238.     - cvrs didn't do the right thing about reals or negative integers.
  1239.     - .echo.mode was being reset with def instead of store, and was
  1240. defined in systemdict rather than userdict.
  1241.     - setgray and settransfer didn't interact properly.
  1242.     - 16#80000000 was being interpreted as a signed integer (and
  1243. converted to a real) rather than an unsigned one.
  1244.     - atan returned 0 sometimes when it should have returned 180.
  1245.     - currentcmykcolor was defined wrong.
  1246.  
  1247. Removes the filename operator, since no standard Ghostscript code used it,
  1248. and it caused problems with some P*stScr*pt files.
  1249.  
  1250. Implements new operators: filenameforall, selectfont (as a procedure),
  1251. stringmatch, undef.
  1252.  
  1253. Adds new standard procedures: selectdevice.
  1254.  
  1255. For MS-DOS, requires that the operand and execution stacks be located in
  1256. the data segment, and uses short pointers to address them.  This produces
  1257. significantly smaller and faster code.  (These changes are not visible to
  1258. users or library clients.)
  1259.  
  1260. Changes the assignment of attribute bits, and adds new bits for
  1261. save/restore and the garbage collector.  Changes many of the macros in
  1262. store.h to support save/restore.  (These changes are not visible to users
  1263. or library clients.)  Implements save and restore.
  1264.  
  1265. Moves type names from gs_init.ps to ghost.h and ztype.c.
  1266.  
  1267. Moves error names from gs_init.ps to errors.h and iinit.c.
  1268.  
  1269. Introduces gp.h as a documented interface to the platform-specific files.
  1270.  
  1271. Adds the -- switch, which allows Ghostscript programs to take arguments
  1272. from the command line.
  1273.  
  1274. Changes many uses of the name `name' to something else, to avoid upsetting
  1275. the Microsoft C compiler.
  1276.  
  1277. Really implements packed arrays -- they took the same amount of space as
  1278. ordinary arrays in previous versions.
  1279.  
  1280. Changes exitserver in serverdict so that it just clears the stacks.  (This
  1281. isn't the correct fix, but it will do as a workaround.)
  1282.  
  1283. Makes many miscellaneous small changes to pacify various compilers.
  1284.  
  1285. Changes gs_fonts.ps so that when "quiet" mode is selected (-q switch),
  1286. Ghostscript doesn't print anything when loading fonts or when substituting
  1287. for undefined characters.
  1288.  
  1289. Defines the name consisting of just a control-D as a no-op, because some
  1290. P*stScr*pt-generating applications put control-Ds in their output.
  1291.  
  1292. Implements halftone phase (sethalftonephase and currenthalftonephase
  1293. operators).
  1294.  
  1295. Removes the -E switch, since it is no longer useful.
  1296.  
  1297. Changes the -w and -h switches to a single -g (geometry) switch, with
  1298. usage -g<width>x<height>.  Makes the -h switch, and a new -? switch, print
  1299. usage help.
  1300.  
  1301. Implements correct handling of stack overflow errors (makes an array out
  1302. of the contents of the overflowing stack, and resets the stack, before
  1303. invoking the error handler).
  1304.  
  1305. Adds t_oparray (`operators' defined as procedures) and the makeoperator
  1306. operator.  This is so that programs like the Distillery that rely on all
  1307. operators being bound by `bind' will work properly.
  1308.  
  1309. Adds a new NOPAUSE flag to suppress the prompt and pause at copypage and
  1310. showpage.
  1311.  
  1312. Library
  1313. -------
  1314.  
  1315. Fixes bugs:
  1316.     - gs_type1_interpret didn't store the encryption state or the skip
  1317. count before returning to let the client handle a seac or an endchar in
  1318. the middle of a seac.
  1319.     - The definition of the Type 1 operator ce_testadd was based on
  1320. wrong information; the operator takes only 2 operands and does something
  1321. unknown.
  1322.     - mem_true24_copy_mono wasn't incrementing the destination pointer
  1323. if the color was transparent, leading to garbled characters.
  1324.     - gx_lookup_fm_pair would sometimes look at one entry beyond the
  1325. end of the cached font/matrix pair area.  (This probably had no practical
  1326. effect.)
  1327.     - gs_type1_interpret didn't save the current point when returning
  1328. to the client for a callothersubr, causing some characters to be rendered
  1329. displaced (such as some of the chess pieces in chess.ps).
  1330.     - gs_setgray, gs_sethsbcolor, gs_setrgbcolor, gs_setflat, and
  1331. gs_setlinewidth gave errors for out-of-range operands rather than forcing
  1332. them into range.
  1333.     - Transfer functions were not actually supported.
  1334.     - The area fill algorithm failed on certain complex paths.
  1335.     - The current point was sometimes defined when a BuildChar
  1336. procedure was called.
  1337.     - Stroking a degenerate line didn't display anything for round
  1338. caps or joins.
  1339.     - If the ends of a curve had exactly the same X coordinate, the
  1340. curve sometimes wouldn't be displayed.
  1341.     - Very thin lines that went outside the clipping region would
  1342. sometimes be displayed as dashed, or not at all.
  1343.     - The translation in a FontMatrix was ignored.
  1344.     - Very wide, shallow lines would color extraneous pixels when
  1345. using bevel or miter joins.
  1346.     - Dashed lines didn't join properly at the beginning of a closed
  1347. path.
  1348.     - 0-degree arcs didn't add the appropriate line (possibly
  1349. degenerate) to the path.
  1350.     - gs_type1_interpret didn't reset the callsubr stack when starting
  1351. the base character of a seac, which caused confusion if the accent's
  1352. endchar fell inside a Subr.
  1353.     - Non-monochrome memory memory devices weren't checking the
  1354. arguments of the drawing procedures properly.
  1355.     - The initial clipping rectangle for memory devices was being
  1356. computed wrong.
  1357.     - Null devices had a semi-infinite clipping rectangle instead of
  1358. an empty one.
  1359.     - gs_setlinewidth was treating negative arguments as zero, instead
  1360. of taking the absolute value.
  1361.     - imagemask with a dithered color used a solid color rather than
  1362. the dithered one.
  1363.  
  1364. Tweaks the area fill and image rendering algorithms to be a little more
  1365. liberal with paint when being used to render characters.
  1366.  
  1367. Changes the name of the 8-bit mapped color memory device from
  1368. mem_mapped_color_device to mem_mapped8_color_device.
  1369.  
  1370. Changes the memory devices so that on little-endian platforms, they can
  1371. store the bytes within a word in either order.  (Little-endian order
  1372. allows efficient 32-bit updating, big-endian is required when displaying
  1373. or writing to a printer or a file.)
  1374.  
  1375. Implements halftone phase.
  1376.  
  1377. Replaces the trapezoid fill algorithm with a much more accurate one
  1378. inspired by a contribution from Paul Haeberli.  This also changes the
  1379. graphics convention back to filling only pixels whose center falls within
  1380. the region to be filled.
  1381.  
  1382. Changes the character cache to allocate headers and bits contiguously out
  1383. of a single ring buffer.
  1384.  
  1385. Changes gs_imagemask and gs_imagemask_init to take a thickness adjustment
  1386. parameter.
  1387.  
  1388. Changes gs_setcachedevice and gs_setcharwidth to take the graphics state
  1389. as a parameter.
  1390.  
  1391. Renames gx_device_memory_bitmap_size as gdev_mem_bitmap_size,
  1392. mem_copy_scan_lines as gdev_mem_copy_scan_lines, and
  1393. mem_bytes_per_scan_line as gdev_mem_bytes_per_scan_line.
  1394.  
  1395. Version 2.1.1 (1/15/91)
  1396. =============
  1397.  
  1398. This is a sub-release distributed to fix a few early bugs in 2.1, just in
  1399. time for the new GNU master tape.
  1400.  
  1401. Build procedures
  1402. ----------------
  1403.  
  1404. Removes all of the (undebugged) Level 2 code from the fileset, as well as
  1405. the (unused) file gdevvga.c.
  1406.  
  1407. Changes the tar file so that the files are stored in the directory
  1408. gs<version> rather than simply gs, e.g., gs211.
  1409.  
  1410. Interpreter
  1411. -----------
  1412.  
  1413. Changes the scanner so that \ is recognized within strings regardless of
  1414. whether the scanner is reading from a string or from a file.  This is
  1415. compatible with newer P*stScr*pt interpreters, and with the newer
  1416. P*stSc*pt language specification, but not with the older specification in
  1417. the original PostScript Language Reference Manual.
  1418.  
  1419. Drivers
  1420. -------
  1421.  
  1422. Fixes the max_value macro in gdevmem.c so that compilers won't complain
  1423. about a left shift by 32.
  1424.  
  1425. Adds 'byte' to the list of types that gdevx.c must sidestep because header
  1426. files use them.
  1427.  
  1428. Library
  1429. -------
  1430.  
  1431. Changes the computation of penum->unpack in gsimage.c so as not to upset
  1432. compilers that don't treat procedures and pointers to procedures as
  1433. compatible types for conditional expressions.
  1434.  
  1435. Version 2.1 (12/31/90)
  1436. ===========
  1437.  
  1438. This is primarily a bug fix release to clean up problems in 2.0.  It also
  1439. implements a first cut at the new color operators.
  1440.  
  1441. Build procedures
  1442. ----------------
  1443.  
  1444. Changes the separator for multiple directories in MS-DOS from ';' to '|',
  1445. since there is no way to include a ';' in a command line.
  1446.  
  1447. Adds <dir>/fonts to the default search path, where <dir> is c:/ghost for
  1448. MS-DOS systems and `pwd` for Unix systems.
  1449.  
  1450. Adds new documentation describing how to direct output to the printer.
  1451.  
  1452. Changes the PROCTYPE and USE8087 options in MSDOS.MAK to CPU_TYPE and
  1453. FPU_TYPE.  The latter now indicates the type of FPU to generate code for,
  1454. if any.
  1455.  
  1456. Drivers
  1457. -------
  1458.  
  1459. Adds a driver for the Canon BubbleJet BJ10e.
  1460.  
  1461. Modifies the EGA driver to handle (non-standard) frame buffers larger than
  1462. 64K.  Adds drivers for the VGA and for the EIZO MDB-10 (a 1024 x 768 frame
  1463. buffer).
  1464.  
  1465. Changes the X driver so that it clips to the window dimensions, rather
  1466. than reporting an error.
  1467.  
  1468. Notes that the H-P LaserJet driver, like the DeskJet driver, works under
  1469. Unix as well as MS-DOS.
  1470.  
  1471. Adds support for 120 X DPI mode, and for the LQ-1500, to the Epson driver.
  1472.  
  1473. Fonts
  1474. -----
  1475.  
  1476. Fixes bugs in bdftops:
  1477.     - It was using /UniqueId instead of /UniqueID as the key for the
  1478. font unique ID.  This effectively disabled the font cache.
  1479.     - The definition for .notdef was bogus -- an invalid CharString.
  1480.  
  1481. Changes ghost.ps and gfonts.ps so that NullFont is the initial font,
  1482. rather than Ugly.
  1483.  
  1484. Arranges things so that when attempting a font substitution, if the
  1485. default font is not found, NullFont is used instead.
  1486.  
  1487. Extends bdftops so that if certain easily synthesized characters are
  1488. missing from a font, it will attempt to synthesize them using available
  1489. characters.
  1490.  
  1491. Interpreter
  1492. -----------
  1493.  
  1494. Extends the -T switch to allow specifying a printf template for the
  1495. arguments of the procedure being traced.
  1496.  
  1497. Fixes bugs:
  1498.     - /0 was interpreted as equivalent to 0 (a number) rather than a
  1499. literal name.
  1500.     - packedarray was defined as being like array, instead of like
  1501. array followed by astore.
  1502.     - Many minor and harmless type mismatches (and a couple of very
  1503. minor genuine bugs) were upsetting the Apollo C compiler.
  1504.     - exp was incorrectly failing in certain cases with a negative
  1505. first argument.
  1506.     - copyscanlines incorrectly required at least 4 elements on the
  1507. operand stack, although it correctly only used the top 3.
  1508.     - readhexstring incorrectly read 1 byte even if the string length
  1509. was zero.
  1510.     - Not every place that expected an array would accept a packed
  1511. array.
  1512.     - Very complex paths (and infrequently other things) could produce
  1513. a 'memory leak'.
  1514.     - / alone would skip following whitespace and gather following
  1515. characters, rather than creating an empty name.
  1516.     - ghost.ps left newerror defined as true in $error, which resulted
  1517. in an erroneous error report if a program executed a 'stop'.
  1518.     - The definition of exitserver in serverdict didn't clear the
  1519. stack.
  1520.     - currentfile returned an executable file, rather than a literal
  1521. one.
  1522.     - setfont for Type 1 fonts didn't check the UniqueID in the font
  1523. dictionary against the one in the font's Private dictionary.
  1524.     - A value stored in a dictionary under the key /xxx couldn't be
  1525. retrieved using the key (xxx), and vice versa.
  1526.     - charpath with a Type 1 font on a string containing a 'space'
  1527. would produce garbage (it released the parent path inappropriately).
  1528.     - bytesavailable did not work properly for terminal input.
  1529.  
  1530. Changes the interface to the memory allocator so that it always takes an
  1531. element size and an element count, like calloc instead of malloc (but note
  1532. that alloc does *not* clear just-allocated blocks).  Gets rid of the
  1533. special 'dynamic' allocation procedures.
  1534.  
  1535. Changes the random number operators to use a better implementation.
  1536.  
  1537. Changes the idiv operator so it will accept any numbers, not just
  1538. integers, as arguments.  (The PostScript manual doesn't allow this, but
  1539. implementations apparently do.)
  1540.  
  1541. Provides semi-fake but usable definitions for all of the color PostScript
  1542. extensions, including a real implementation of colorimage.
  1543.  
  1544. No longer uses the name 'null', which is apparently reserved by Microsoft
  1545. C.  Makes a number of other minor changes required to pacify the Microsoft
  1546. C compiler.
  1547.  
  1548. Implements %statementedit and %lineedit.  (%statementedit is equivalent to
  1549. %lineedit, which is wrong.)  Changes the interactive interpreter to use
  1550. %statementedit.
  1551.  
  1552. Changes the scanner to accept null, ctrl-K (vertical tab), and ctrl-L
  1553. (form feed) as whitespace.  Ctrl-L terminates a comment, null and ctrl-K
  1554. do not.
  1555.  
  1556. Allows a literal string as the 'proc' argument(s) for image, imagemask,
  1557. and colorimage.
  1558.  
  1559. Adds the following operators/procedures: arct, cleardictstack, deletefile,
  1560. renamefile.
  1561.  
  1562. Defines =print as a synonym for =, for the benefit of LaserPrep.
  1563.  
  1564. Implements non-zero PaintType for the show operators (but not for
  1565. charpath) for Type 1 fonts.
  1566.  
  1567. Adds the ISOLatin1Encoding encoding vector.
  1568.  
  1569. Renames currentcolor and setcolor as currentgscolor and setgscolor, to
  1570. avoid conflict with the Level 2 PostScript names.  Removes colorhsb,
  1571. colorrgb, hsbcolor, and rgbcolor.
  1572.  
  1573. Library
  1574. -------
  1575.  
  1576. Fixes bugs:
  1577.     - In a couple of places, a 0 was being passed as a pointer
  1578. argument without casting, which confused the Microsoft C compiler.
  1579.     - Image devices were not recognized properly in debugging
  1580. configurations.
  1581.     - Inverted-color monochrome image devices were not recognized
  1582. properly.
  1583.     - Images that exactly fill the drawing area rendered very slowly,
  1584. because they erroneously used the general clipping algorithm.
  1585.     - Images that are 1-for-1 with the device were incorrectly scaled
  1586. by a factor of 8 in X.
  1587.     - Rounding artifacts sometimes caused characters to be unevenly
  1588. offset vertically by 1 pixel.
  1589.     - Type 1 fonts that used the Flex feature resulted in garbled
  1590. images.
  1591.     - The show operator routines would incorrectly fill or stroke a
  1592. path that existed at the time the show was started.
  1593.     - setscreen truncated the cell size instead of rounding, which
  1594. could produce off-by-1 anomalies.
  1595.     - stroke would sometimes produce garbage (or nothing at all) for
  1596. very narrow lines.
  1597.     - path filling would only color the pixels whose centers fell
  1598. inside the path: the Adobe specification requires coloring a pixel if any
  1599. part of it falls inside the path.
  1600.  
  1601. Changes the Epson printer driver so that it drives the printer directly
  1602. rather than writing to a file.
  1603.  
  1604. Changes pathbbox so that if the path is empty but there is a current
  1605. point, it returns a null rectangle at the current point.
  1606.  
  1607. Changes gs_image_init to take an additional parameter (after bps) giving
  1608. the number of samples per pixel (1, 3, or 4), and an indication of whether
  1609. the samples for each pixel are together or separated (-3 or -4).
  1610.  
  1611. Renames the gs_image_data and gs_imagemask_data procedures as gs_image and
  1612. gs_imagemask, and removes the old versions of the latter.
  1613.  
  1614. Adds gs_colorimage.
  1615.  
  1616. Replaces Snoopy's color dithering algorithm with one contributed by Paul
  1617. Haeberli.
  1618.  
  1619. Changes gs_setgray, gs_[set]hsbcolor, and gs_[set]rgbcolor so that they
  1620. coerce arguments outside the range [0..1] back into the range, instead of
  1621. signalling an error.
  1622.  
  1623. Makes a number of minor changes required to pacify the Microsoft C
  1624. compiler.
  1625.  
  1626. Changes gs_arcto so that if the last argument is a null pointer, the
  1627. tangent points are not returned.
  1628.  
  1629. Removes gs_type1addpath, which is not useful.  (Clients must call
  1630. gs_type1_init and gs_type1_interpret directly.)
  1631.  
  1632. Implements the 'seac' opcode for Type 1 fonts, allowing fonts with accented
  1633. characters to display properly.
  1634.  
  1635. Implements the undocumented 'testadd' opcode for Type 1 fonts, which is
  1636. used by some Adobe fonts.
  1637.  
  1638. Renames gs_currentcolor and gs_setcolor as gs_currentgscolor and
  1639. gs_setgscolor.  Removes gs_colorhsb, gs_colorrgb, gs_hsbcolor, and
  1640. gs_rgbcolor.
  1641.  
  1642. Version 2.0 (9/12/90)
  1643. ===========
  1644.  
  1645. The main purpose of this release is to add fonts, support for multiple
  1646. devices, and imaging into memory.  It also fixes a number of miscellaneous
  1647. bugs.  (Unfortunately, accurate records of the bugs fixed are not
  1648. available.)  The changes were so extensive that we chose to increment the
  1649. major version number.
  1650.  
  1651. Miscellaneous
  1652. -------------
  1653.  
  1654. Doesn't attempt to open the .MAP file on Unix systems.
  1655.  
  1656. Adds mention of statusd.ps to interp.doc.
  1657.  
  1658. Notes that Turbo C 2.0, not 1.5, is required for building the MS-DOS
  1659. version.
  1660.  
  1661. Adds a DEVICES= line to the makefile, and allows multiple devices.
  1662.  
  1663. Documents, in interp.doc, the X Windows resources that Ghostscript
  1664. recognizes.
  1665.  
  1666. Adds three PostScript masters to the fileset: chess.ps (+ cheq.ps),
  1667. golfer.ps, and escher.ps.
  1668.  
  1669. Drivers
  1670. -------
  1671.  
  1672. Changes the names of all the device drivers.  See gdevs.mak for the
  1673. updated list.
  1674.  
  1675. Adds a (working) driver for SunView.
  1676.  
  1677. Adds drivers for the Sony NeWS frame buffer, and the Sony Microsystems
  1678. NWP533 printers.  These drivers were contributed by users, so we aren't
  1679. prepared to answer questions about them.
  1680.  
  1681. Adds a driver for the Borland Graphics Interface (BGI) for MS-DOS systems.
  1682. Note that to use this driver with a non-EGA/VGA display, you need a .BGI
  1683. file appropriate for your hardware.  (The Ghostscript executable includes
  1684. the EGA/VGA driver.)
  1685.  
  1686. Adds a driver for Epson printers.  The driver has only been tested on an
  1687. LX-800, and on an H-P DeskJet in FX-80 emulation mode, but may work on
  1688. other models.  The driver could be adapted to work on Unix systems, but as
  1689. distributed, it only works on MS-DOS systems.
  1690.  
  1691. Adds a driver for the Hewlett-Packard DeskJet printer.  The driver could
  1692. be adapted to work on Unix systems, but as distributed, it only works on
  1693. MS-DOS systems.
  1694.  
  1695. The X Windows driver no longer waits for the user to type a character
  1696. before bringing up the initial display.
  1697.  
  1698. Adds information to drivers.doc describing how to change the definition of
  1699. the device structure and procedure table.
  1700.  
  1701. Extends the tile_rectangle and tile_trapezoid driver procedures to
  1702. interpret color0 = color1 = gx_no_color_index as meaning that the tile is
  1703. actually colored, not a mask.
  1704.  
  1705. Build procedures
  1706. ----------------
  1707.  
  1708. Changes the tar file so it puts everything in a directory called gs.
  1709.  
  1710. Removes the -ansi switch for gcc (this was causing problems with <math.h>
  1711. on some systems).
  1712.  
  1713. Changes LDPLAT to the string -X, which is appropriate for most Unix
  1714. systems (but not for SunOS 4.n).
  1715.  
  1716. Adds EXTRALIBS to the makefile, for specifying additional libraries to be
  1717. linked in.
  1718.  
  1719. Adds a 'clean' target for 'make', to get rid of all temporary files, the
  1720. binaries, and the executable.
  1721.  
  1722. Changes names of system-specific files from gp-xxx.c to gp_xxx.c.
  1723.  
  1724. Adds support for VMS (gp_vms.c and ghost.dcl).
  1725.  
  1726. Creates a new file gdevs.mak, and reorganizes the other makefiles, so that
  1727. the choice of which device driver(s) to include is isolated in a single
  1728. line in the platform-specific makefile.
  1729.  
  1730. Changes the standard MS-DOS makefile so it builds for 8088/86 (not 80386),
  1731. with neither -DNOPRIVATE nor -DDEBUG.
  1732.  
  1733. Changes the name of the MS-DOS makefile from dos-ega.mak to msdos.mak, and
  1734. the Unix makefiles from ux-[g]cc-x.mak to unix-[g]cc.mak.
  1735.  
  1736. Updates drivers.doc to describe how to add new drivers in gdevs.mak.
  1737.  
  1738. Removes gdevs.ps: the drivers are now responsible for specifying the size
  1739. of the imaging region.
  1740.  
  1741. Interpreter
  1742. -----------
  1743.  
  1744. Adds a makefile macro GS_LIB_DEFAULT and an environment variable GS_LIB to
  1745. define a search path for the library (initialization and font) files, and
  1746. implements the -I switch for the same purpose (replacing -sLIB=, which was
  1747. never actually implemented).  See interp.doc for details.
  1748.  
  1749. No longer clears the operand stack between interactive inputs.  No longer
  1750. prints the contents of the operand stack after every input in debug mode.
  1751.  
  1752. Doesn't "eat" the character that the user types to proceed after a
  1753. showpage, unless it's an isolated <return>.
  1754.  
  1755. Changes the prompt so that it says
  1756.     GS>
  1757. if the operand stack is empty, or
  1758.     GS<n>
  1759. if there are n > 0 elements on the operand stack.
  1760.  
  1761. Adds -w and -h switches to the command line, equivalent to -dWIDTH= and
  1762. -dHEIGHT= except that they require numeric arguments.
  1763.  
  1764. Adds -q (quiet startup) switch to the command line, which suppresses some
  1765. initial messages and also has an effect equivalent to -dQUIET.
  1766.  
  1767. Fixes bugs:
  1768.     - = and == caused an error on some kinds of objects if the object
  1769. didn't have read access.
  1770.     - cvs didn't print operator names.
  1771.     - The definition of dynamic_begin in iscan.c caused the DEC VMS C
  1772. compiler to produce incorrect code.
  1773.     - mul didn't return a correct (real) result when multiplying a
  1774. very large integer by an integer that wasn't very large.
  1775.     - eq and ne didn't work on files, fonts, save objects, and some
  1776. operators.
  1777.     - The scanner would sometimes blow up on floating point numbers
  1778. beginning with a '.'.
  1779.     - flushfile didn't pop its argument from the stack.
  1780.     - put and putinterval would store into a packed array.
  1781.     - a few operators didn't check properly for stack underflow.
  1782.     - cvrs produced wrong output for radix values greater than 10.
  1783.     - The scanner would convert upper-case letters in alternate-radix
  1784. numbers wrong on Unix systems.
  1785.     - String comparisons other than equality often produced the wrong
  1786. result if the strings were of different lengths.
  1787.     - An ifelse as the last thing inside a forall would confuse the
  1788. execution stack.
  1789.     - There were some omitted casts and 'private' declarations that
  1790. made the GNU compiler unhappy.
  1791.     - There was a memory leak in the image[mask] operators that caused
  1792. 516 bytes to be permanently lost each time one of them was used.
  1793.     - Quoted strings of length greater than 50 and less than 100 would
  1794. get mangled when being read in.
  1795.     - The scanner didn't consume the whitespace character following a
  1796. token, so programs that read data out of the program file could get
  1797. confused.
  1798.     - Under rare circumstances, an object of size between 249 and 255
  1799. bytes could get allocated on top of another object.
  1800.  
  1801. Allows bind to bind packed arrays, even though they aren't normally
  1802. writable.
  1803.  
  1804. Changes the length operator to allow a name as the argument.  (The
  1805. PostScript manual doesn't allow this, but implementations apparently do.)
  1806.  
  1807. Changes the setcachedevice operator to allow the bounding box to be
  1808. specified as a 4-element array instead of 4 scalars.  (The PostScript
  1809. manual doesn't allow this, but implementations apparently do.)
  1810.  
  1811. Removes a line from ghost.ps that accidentally disabled the font cache.
  1812.  
  1813. Implements memory devices (makeimagedevice, copyscanlines, and makedevice
  1814. for image devices).  makeimagedevice is implemented only for 1, 8, 24, and
  1815. 32 bits per pixel.
  1816.  
  1817. Changes the deviceparams operator so it pushes a mark on the stack below
  1818. the parameters.  This is to allow for devices that have more than the
  1819. standard set of parameters.
  1820.  
  1821. Replaces defaultdevicename with two new operators, getdevice and
  1822. devicename.
  1823.  
  1824. Adds a flushpage operator that flushes any outstanding buffered output to
  1825. the screen.  This is not the same as copypage: on printers, copypage
  1826. actually prints a page, whereas flushpage may do nothing; on displays,
  1827. flushpage and copypage may both flush output to a server.
  1828.  
  1829. Adds an unread operator for pushing back a character into a file.
  1830.  
  1831. Adds a description of proposed grayimage and colorimage operators to
  1832. ghost.doc, even though they aren't implemented yet.
  1833.  
  1834. Changes the name of the currentfileposition operator to fileposition.
  1835.  
  1836. Removes the framedevice operator, since the new device operators supersede
  1837. it.
  1838.  
  1839. Adds a writeppmfile operator, for writing the contents of a memory device
  1840. to a ppm file.
  1841.  
  1842. Makes Ghostscript work even when the >> operator doesn't sign-extend
  1843. negative numbers.  (This has not been tested.)
  1844.  
  1845. Adds the Symbol encoding to ghost.ps.
  1846.  
  1847. Adds two new file-related operators, filename and findlibfile.  See
  1848. ghost.doc and interp.doc for details.
  1849.  
  1850. Adds type1encrypt and type1decrypt operators for manipulating Adobe Type 1
  1851. encoded fonts.
  1852.  
  1853. Changes the imagecharpath and addcharpath operators to type1imagepath and
  1854. type1addpath.  These operators now work with the Adobe Type 1 font
  1855. encoding.
  1856.  
  1857. Adds the type1decryptfile operator for reading Adobe Type 1 encrypted
  1858. fonts.
  1859.  
  1860. Library
  1861. -------
  1862.  
  1863. Fixes bugs:
  1864.     - curveto and lineto didn't check for the current point being
  1865. defined.
  1866.     - stringwidth would fail if there was no current point.
  1867.     - There were omitted casts that made the GNU compiler unhappy.
  1868.     - Line caps and joins didn't always work.
  1869.     - Dashed lines didn't work at all.
  1870.     - If you read out the current matrix while inside a BuildChar
  1871. procedure, the result was garbage.
  1872.     - image[mask] would crash if you gave it a single string with more
  1873. than 64K-1 pixels (MS-DOS only).
  1874.     - Filling with a gray pattern sometimes wrote into pixels beyond
  1875. the right edge of the region (MS-DOS only).
  1876.     - The font cache would mistake fonts for each other if both fonts
  1877. had a default (unsupplied) "unique ID".
  1878.     - When a character was entered into the font cache for the first
  1879. time, sometimes it would display as garbage and/or displaced vertically
  1880. from its proper position.
  1881.  
  1882. Implements gs_makeimagedevice, gs_copyscanlines, gs_getdevice,
  1883. gs_devicename, gs_flushpage, gs_writeppmfile, gs_type1encrypt,
  1884. gs_type1decrypt, gs_type1imagepath, and gs_type1addpath procedures
  1885. corresponding to the new operators in the interpreter (see preceding
  1886. section).
  1887.  
  1888. Changes [gs_]setdevice so that it does an erasepage when it first opens
  1889. the device.
  1890.  
  1891. Changes definition of gx_device structure as follows.  NOTE: THIS AFFECTS
  1892. ALL DRIVERS.
  1893.  
  1894.     - Removes bits_from_MSB (which wasn't actually used, in any case).
  1895.         Ghostscript now assumes officially, as it always did in
  1896.         practice, that device bitmaps are stored MSB first, i.e., X=0
  1897.         corresponds to the 0x80 bit in the first byte.
  1898.  
  1899.     - Removes the initial_matrix member, which wasn't actually being
  1900.         set up.
  1901.  
  1902.     - Adds a new member 'name', a string giving the device name.
  1903.  
  1904.     - Adds new members 'x_pixels_per_inch' and 'y_pixels_per_inch'.
  1905.         These are only used by the default initial_matrix procedure
  1906.         (see below).
  1907.  
  1908.     - Adds a new procedure 'output_page'.  The default implementation
  1909.         (gx_default_output_page) just calls the sync_output procedure.
  1910.  
  1911.     - Adds a new procedure 'get_initial_matrix'.  The default
  1912.         procedure uses the width, height, and x/y_pixels_per_inch
  1913.         members to compute the matrix, assuming that X values run from
  1914.         right to left, and Y values run from top to bottom.
  1915.  
  1916. Changes the names of the allocation procedure types gs_proc_alloc and
  1917. gs_proc_free to proc_alloc_t and proc_free_t, and moves them from gs.h to
  1918. std.h.
  1919.  
  1920. Makes Ghostscript work even when the >> operator doesn't sign-extend
  1921. negative numbers.  (This has not been tested.)
  1922.  
  1923. Version 1.3 (6/20/89)
  1924. ===========
  1925.  
  1926. This release should have had a lot more things in it, but time pressure
  1927. and the already long delay in getting it out made it necessary to push it
  1928. out the door in an incomplete state (e.g., no testing on X systems
  1929. whatsoever).
  1930.  
  1931. Interpreter
  1932. -----------
  1933.  
  1934. Makes -d and -D equivalent on the command line.  Adds a new switch -s / -S
  1935. that defines a name as a string rather than a token.
  1936.  
  1937. Arranges things so that if -sLIB=_a_prefix_ is defined on the command
  1938. line, (filename) run will look for _a_prefix_filename before giving up if
  1939. filename isn't the name of an accessible file.
  1940.  
  1941. Changes showpage from an operator to a procedure.  The definition of
  1942. showpage in ghost.ps does a copypage, beeps the console, waits for the
  1943. user to type a character (normally a <return>, since line buffering is
  1944. always enabled), and then does an erasepage and an initgraphics.
  1945.  
  1946. Adds a new initialization file, gdevs.ps, containing device-dependent
  1947. parameters.  The default window size for X Windows is properly set to 612
  1948. x 792, i.e., 8.5" x 11".
  1949.  
  1950. Adds a new optional initialization file, statusd.ps, that provides dummy
  1951. definitions for the names found in statusdict on LaserWriters.
  1952.  
  1953. Adds a new operator, getenv, to get information from the shell
  1954. environment.
  1955.  
  1956. Adds a new predefined operator, defaultdevicename, that returns either (X)
  1957. or (EGA) according to how the interpreter was built.
  1958.  
  1959. Adds a new type, devicetype, and new operators deviceparams, getscanlines,
  1960. makedevice, makeimagedevice, and setdevice.  Changes currentdevice to
  1961. return a device object rather than a set of parameters.
  1962.  
  1963. Makes the scanner recognize reals with 'e' exponent notation, and handle
  1964. reals with more than 9 digits.
  1965.  
  1966. Fixes a bug that made names starting with digits read incorrectly.
  1967.  
  1968. Fixes a bug in the exp operator that made it not pop its first argument
  1969. from the stack.
  1970.  
  1971. Fixes a bug in the rand operator that made it return negative values about
  1972. half the time.
  1973.  
  1974. Fixes a bug in equality comparison (eq, ne, and several other operators)
  1975. that made unequal operator objects occasionally appear to be equal on DOS
  1976. systems.
  1977.  
  1978. Fixes a bug in the bind operator that made it not work on packed arrays.
  1979.  
  1980. Changes the internal representation of dictionaries so they can be
  1981. expanded or contracted dynamically.  Adds a new operator, setmaxlength, to
  1982. change the allocated size of a dictionary.
  1983.  
  1984. Changes sstorei.h so that non-DOS compilers don't encounter the #pragma
  1985. directive used by Turbo C.
  1986.  
  1987. Restores the display mode (on MS-DOS systems) when exiting.
  1988.  
  1989. Fonts
  1990. -----
  1991.  
  1992. Makes undefined characters in the standard font display as tilde rather
  1993. than blank (or causing an error).  Unmapped character codes (those mapped
  1994. to .notdef in the encoding) still display as nothing, per the PostScript
  1995. manual.
  1996.  
  1997. Library
  1998. -------
  1999.  
  2000. Adds a new header file, gxbitmap.h, with some new documentation describing
  2001. the internal storage format for bitmaps.
  2002.  
  2003. Makes numerous internal changes in the character / font cache, affecting
  2004. many of the routines in gxcache.c.
  2005.  
  2006. Fixes a bug in gz_draw_line / gz_fill_trapezoid that made nearly
  2007. horizontal lines display wrong.
  2008.  
  2009. Fixes a bug in gs_scale that made scaling not work if the coordinate
  2010. system was rotated or skewed.
  2011.  
  2012. Extends the font cache so it will handle characters rotated by multiples
  2013. of 90 degrees.
  2014.  
  2015. Changes the second argument of gx_path_bbox and gx_path_is_rectangle to be
  2016. a gs_fixed_rect * rather than a fixed [4].
  2017.  
  2018. Changes gs_matrix_rotate so it handles multiples of 90 degrees as a
  2019. special case.
  2020.  
  2021. Changes the definition of the gx_device structure to accommodate the new
  2022. device operators, and adds corresponding library calls.
  2023.  
  2024. Changes the type for a device color index from int to gx_color_index
  2025. (equivalent to unsigned long).  ***NOTE***: this affects existing clients
  2026. and drivers in a non-trivial way on MS-DOS systems.
  2027.  
  2028. Changes gs_malloc and gs_free to take a client name string as an argument.
  2029.  
  2030. Usage procedures
  2031. ----------------
  2032.  
  2033. Changes the compilation rules for Unix systems to not use the -o and -c
  2034. compiler flags together, to be compatible with more versions of cc.
  2035.  
  2036. Changes the gcc makefile to use $(GCC) rather than gcc as the compiler
  2037. name.
  2038.  
  2039. Moves the -1 flag for the MS-DOS compiler from the cc*.bat files to the
  2040. makefile.
  2041.  
  2042. Changes CCDEBUG to CCFLAGS, and adds ASMFLAGS, in DOS makefile.
  2043.  
  2044. Adds -DFOR80386 and /DFOR80386 to enable use of 80386 instructions in
  2045. assembly code on DOS systems.
  2046.  
  2047. Merges the DEBUG and gs_DEBUG switches.  There is now only a single DEBUG
  2048. switch that affects both the interpreter and the library.
  2049.  
  2050. Adds a new compilation switch, -DNOPRIVATE, that makes private (static)
  2051. variables and procedures public for debugging and profiling (only needed
  2052. on DOS systems).
  2053.  
  2054. Adds the DOS executable (gs.exe and gs.map) to the distribution fileset.
  2055.  
  2056. Adds new platform-specific code files, gp-*.c, for a few things like
  2057. reading the clock.
  2058.  
  2059. Adds a new documentation file, drivers.doc, that describes the interface
  2060. between Ghostscript and device drivers.
  2061.  
  2062. Version 1.2 (2/22/89)
  2063. ===========
  2064.  
  2065. Interpreter
  2066. -----------
  2067.  
  2068. Adds the new facilities in version 25 of PostScript: //name for immediate
  2069. lookup, packed arrays (setpacking, currentpacking, packedarray operators),
  2070. and new font cache parameters (setcacheparams, currentcacheparams
  2071. operators).
  2072.  
  2073. Adds new operators (setfileposition, currentfileposition) for random
  2074. access to files.
  2075.  
  2076. Extends readhexstring to take either a string or a file, just like token.
  2077.  
  2078. Fixes a bug that caused the 'for' operator (and a couple of others) to
  2079. randomly smash memory locations on PC platforms.
  2080.  
  2081. Library
  2082. -------
  2083.  
  2084. Renames the init_device driver procedure as open_device, and adds a
  2085. corresponding close_device.
  2086.  
  2087. Adds new procedures to read and set the cache limit values (implementing
  2088. the currentcacheparams and setcacheparams operators).
  2089.  
  2090. Usage procedures
  2091. ----------------
  2092.  
  2093. Changes the name of the Unix makefile to ux-cc-x.mak, and adds a new Unix
  2094. makefile, ux-gcc-x.mak, for using gcc instead of cc.  (The latter doesn't
  2095. actually work yet.)
  2096.  
  2097. Changes the name of the single built-in font from uglyfont.cp to
  2098. ugly10.cp.
  2099.  
  2100. Version 1.1 (2/12/89)
  2101. ===========
  2102.  
  2103. Interpreter
  2104. -----------
  2105.  
  2106. Makes the scanner treat ^Z (ASCII code 26) as whitespace: it erroneously
  2107. treated ^R (ASCII code 22, or octal 26) as whitespace.
  2108.  
  2109. Makes the token and readline operators, and the syntax for comments,
  2110. recognize \r (code 13), \n (code 10), and \r\n as equivalent end-of-line
  2111. indicators.  The token and readline operators will skip over any of these
  2112. sequences at the end of a token or line respectively, and a comment will
  2113. read through any of these sequences.  The other file operators (read,
  2114. write, readstring, writestring) do nothing special with these characters.
  2115.  
  2116. Changes the debug switch name from -D to -Z.  Adds a -D switch for
  2117. defining names in systemdict from the command line.  Defines -DDEBUG for
  2118. printing out debugging information during initialization, and -DNODISPLAY
  2119. for suppressing display output.
  2120.  
  2121. Corrects a bug that prevented the error machinery from working -- in
  2122. version 1.0, errors always dumped the stacks and aborted interpretation.
  2123.  
  2124. Corrects a bug that made eq and ne not work for strings.
  2125.  
  2126. Makes the atan (arctangent) operator normalize its results according to
  2127. the PostScript convention.
  2128.  
  2129. Makes the div operator check for zero divisor.
  2130.  
  2131. Makes unimplemented operators (resetfile, echo, save, restore, strokepath,
  2132. reversepath) truly undefined.
  2133.  
  2134. Makes the interactive loop exit gracefully on end-of-file: in version 1.0
  2135. this caused an infinite loop.
  2136.  
  2137. Implements the status operator.
  2138.  
  2139. Corrects a bug that made the 'for' operator deliver garbage values if one
  2140. or more of the operands (start, increment, end) was a real.
  2141.  
  2142. Corrects a bug that made the arc and arcn operators not pop their operands
  2143. from the stack.
  2144.  
  2145. Corrects a bug that made the kshow operator crash the interpreter.
  2146.  
  2147. Corrects a bug that made the print operator fail on machines that don't
  2148. pass structure arguments by simply pushing the contents of the structure.
  2149.  
  2150. Adds a new operator, imagecharpath, to convert images to
  2151. addcharpath-compatible outlines.
  2152.  
  2153. Changes alloc and alloc_free to use char * rather than byte *, and
  2154. alloc_free to return void rather than int, making them compatible with the
  2155. library's expectations and with malloc/free.
  2156.  
  2157. Explicitly casts all expressions of the form (ptr1 - ptr2) used as
  2158. procedure arguments to unsigned, to handle an incompatibility between
  2159. Turbo C versions 1.5 and 2.0.
  2160.  
  2161. Changes some of the internal conventions for operators: operators that
  2162. push on the operand stack must check for overflow explicitly, and
  2163. operators that modify the execution stack must return a special code.
  2164. (See oper.h for details.)
  2165.  
  2166. Initialization (ghost.ps, gfonts.ps)
  2167. --------------
  2168.  
  2169. Modifies ghost.ps and gfonts.ps so they print debugging information only
  2170. if the name DEBUG is defined.  (Presumably the user will set this from the
  2171. command line with -DDEBUG.)
  2172.  
  2173. Changes ghost.ps so it initializes the nominal screen size to 640 x 350 on
  2174. MS-DOS systems as before, but to 612 x 792 on Unix systems, which is an
  2175. 8.5" x 11" page at 72 pixels per inch.
  2176.  
  2177. Library
  2178. -------
  2179.  
  2180. Corrects a bug that made the fill and eofill operators (gs_fill and
  2181. gs_eofill) not perform a newpath afterward.
  2182.  
  2183. Corrects the bug that made thin, nearly horizontal lines display wrong (as
  2184. a series of disconnected dots) in the MS-DOS implementation.
  2185.  
  2186. Fixes a bug in the EGA driver that often made it fill rectangular regions
  2187. with black around information being displayed in white.
  2188.  
  2189. Completely changes the internal representation of outline fonts, and
  2190. changes btoi.ps (a Ghostscript language program for converting bitmaps to
  2191. outlines) to use a new library call, gs_imagecharpath.
  2192.  
  2193. Changes the extension for outline font files from .gf to .cp.
  2194.  
  2195. Adds a new debugging switch, q, that traces all rectangle fill operations.
  2196.  
  2197. Adds a new debugging switch, v, that traces all device-level output calls.
  2198.  
  2199. Explicitly casts pointer differences passed as procedure arguments, as in
  2200. the interpreter.
  2201.  
  2202. Makes stringwidth work if there is no current point.  In version 1.0, this
  2203. gave a nocurrentpoint error.
  2204.  
  2205. Usage procedures
  2206. ----------------
  2207.  
  2208. Changes the name of the 'read me' file from READ.ME to README.
  2209.  
  2210. Removes a bogus line (invoking the 'mcopy' utility) from the makefile.
  2211.  
  2212. Splits up the makefile into a generic part (ghost.mak) and
  2213. platform-specific parts (dos-ega.mak, unix-x11.mak).  The latter are what
  2214. is actually executed.
  2215.  
  2216. Puts the definitions of the DEBUG and gs_DEBUG compilation flags into the
  2217. makefile instead of in ghost.h and gx.h respectively.
  2218.  
  2219. Changes the names of the documentation files to be a little less cryptic.
  2220. Changes all the file names to lower-case in the documentation.  Adds
  2221. installation information to make.doc.
  2222.  
  2223. Changes all function definitions (but not prototype declarations) to ANSI
  2224. syntax, and adds a preprocessing step (ansi2knr) to convert them to K&R
  2225. syntax on Unix systems.
  2226.  
  2227. Changes the normal MS-DOS link configuration to not assume the presence of
  2228. an 80x87 coprocessor, and describes how to increase performance if a
  2229. coprocessor is present.
  2230.  
  2231. Changes the names of all the interpreter .c files, except stream.c, to
  2232. begin with 'i'.
  2233.  
  2234. Version 1.0 (8/11/88)
  2235. ===========
  2236.  
  2237. First version released to the public.
  2238.